package Process2;

public class ThreadSeq {

    public static void main(String[] args) throws InterruptedException {
        Thread t=new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName());
            }
        }, "子线程");
        t.start();
        t.join();
        System.out.println(Thread.currentThread().getName());
    }
}
